Optimal. Leaf size=32 \[ \frac {B \log (a+b x)}{b^2}-\frac {A b-a B}{b^2 (a+b x)} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {43} \begin {gather*} \frac {B \log (a+b x)}{b^2}-\frac {A b-a B}{b^2 (a+b x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rubi steps
\begin {align*} \int \frac {A+B x}{(a+b x)^2} \, dx &=\int \left (\frac {A b-a B}{b (a+b x)^2}+\frac {B}{b (a+b x)}\right ) \, dx\\ &=-\frac {A b-a B}{b^2 (a+b x)}+\frac {B \log (a+b x)}{b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 31, normalized size = 0.97 \begin {gather*} \frac {a B-A b}{b^2 (a+b x)}+\frac {B \log (a+b x)}{b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A+B x}{(a+b x)^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.14, size = 37, normalized size = 1.16 \begin {gather*} \frac {B a - A b + {\left (B b x + B a\right )} \log \left (b x + a\right )}{b^{3} x + a b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.98, size = 57, normalized size = 1.78 \begin {gather*} -\frac {B {\left (\frac {\log \left (\frac {{\left | b x + a \right |}}{{\left (b x + a\right )}^{2} {\left | b \right |}}\right )}{b} - \frac {a}{{\left (b x + a\right )} b}\right )}}{b} - \frac {A}{{\left (b x + a\right )} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 39, normalized size = 1.22 \begin {gather*} -\frac {A}{\left (b x +a \right ) b}+\frac {B a}{\left (b x +a \right ) b^{2}}+\frac {B \ln \left (b x +a \right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.93, size = 34, normalized size = 1.06 \begin {gather*} \frac {B a - A b}{b^{3} x + a b^{2}} + \frac {B \log \left (b x + a\right )}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 32, normalized size = 1.00 \begin {gather*} \frac {B\,\ln \left (a+b\,x\right )}{b^2}-\frac {A\,b-B\,a}{b^2\,\left (a+b\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.24, size = 27, normalized size = 0.84 \begin {gather*} \frac {B \log {\left (a + b x \right )}}{b^{2}} + \frac {- A b + B a}{a b^{2} + b^{3} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________